<template>
	<!-- <div>{{$route.params.name}}</div> -->
	<div>{{id}}</div>
	<!--<div>{{name}}</div>-->
</template>

<script>
	export default {
		props: {
			/*name: {
				type: String,
				default: "vue-cli"
			}*/
			id: {
				type: String,
				default: 'param'
			}
		},
		beforeRouteEnter(to, from, next) {
			next(vm => {
				// console.log(vm)
			})
		},
		beforeRouteUpdate(to, from, next) {
			// console.log(to.name, from.name);
			next();
		}
	};
</script>
